package com.pets.web.mapper;

import com.github.yulichang.base.MPJBaseMapper;
import com.pets.web.entity.PetsDelivery;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 发货管理 Mapper 接口
 * </p>
 *
 * @author zhurenwang
 * @since 2024-05-26
 */
@Mapper
public interface PetsDeliveryMapper extends MPJBaseMapper<PetsDelivery> {

    @Select("select * from pets_delivery where find_in_set(#{orderId}, order_ids)")
    List<PetsDelivery> selectByOrderId(@Param("orderId") Integer orderId);
}
